static-delta: Handle LZMA_BUF_ERROR returned by zlib
authorJohn Hiesey <john@hiesey.com>
Wed, 7 Oct 2015 20:30:33 +0000 (13:30 -0700)
committerColin Walters <walters@verbum.org>
Sat, 10 Oct 2015 14:27:17 +0000 (10:27 -0400)
commitdd35e1b9cdb4b8abf0ffd15263ae33db3e729d75
tree0a629e160cbf25f7748c5e0ea9df3a7cef65b9fb
parentb6e2eaf212bac6231dcaf03491b251b0a0850002
static-delta: Handle LZMA_BUF_ERROR returned by zlib

zlib can return LZMA_BUF_ERROR, which indicates that either
the input or output buffer has size zero. This case should cause
the correct error to be passed back from g_converter_convert
to expand the relevant buffer. Since this error is ambiguous
as to which buffer is too small, an explicit check on the
output buffer size is added as well.

https://bugzilla.gnome.org/show_bug.cgi?id=756260
src/libostree/ostree-lzma-common.c
src/libostree/ostree-lzma-compressor.c
src/libostree/ostree-lzma-decompressor.c